package com.duoduo.algs4.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class RedirectStream {
	private static FileInputStream fis = null; 
	
	public static FileInputStream redirectFileToStdin(String path) throws FileNotFoundException{
		fis = new FileInputStream(path);
		System.setIn(fis);
		return fis;
	}
}
